package com.morgan.matrix;

import java.util.ArrayList;
import java.util.List;

public class Matrix {

    /**
     * @param args
     */
    public static void main(String[] args) {
       
        List<Triple> list = new ArrayList<Triple>();
        
        list.add(new Triple(3,1,3));
        list.add(new Triple(4,1,6));
        list.add(new Triple(3,2,-9));
        list.add(new Triple(1,3,8));
        list.add(new Triple(3,3,4));
        list.add(new Triple(3,5,6));
        list.add(new Triple(2,4,8));
        list.add(new Triple(5,3,-3));
        
        SparseMatrix s = new SparseMatrix(5, 6, list);
        
        s.output();
        System.out.println();
        
        SparseMatrix ss = s.transponse();
        ss.output();
        
        

    }

}
